import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('test')
export class test extends Component {
    choicebool = false;
    start() {

    }

    update(deltaTime: number) {
        
    }

    Choice(){
        if(!this.choicebool){
            console.log('选择一个装备');
            this.choicebool = true;
            return;
        }
        if(this.choicebool){
            this.choicebool = false;
        }
    }

}

